package com.iqiyi.service.impl;

import com.iqiyi.mapper.GerenMapper;
import com.iqiyi.po.Video;
import com.iqiyi.service.GerenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GerenServiceImpl implements GerenService {
    @Autowired(required = false)
    GerenMapper gerenMapper;


    @Override
    public Video findByVideoid(Integer id) {
        return gerenMapper.findByVideoid(id);
    }

    @Override
    public List<Video> findAllVideo(Video video) {
        return gerenMapper.findAllVideo(video);
    }

    @Override
    public int insertVideo(Video video) {
        return gerenMapper.insertVideo(video);
    }
}

